package com.example.LightningController;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MyActivity extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

          Button ativityButton = (Button) findViewById(R.id.activity_button);
          ativityButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Intent newActivity = new Intent(MyActivity.this, Zones.class);
                  startActivity(newActivity);
              }
          });

        Button anotherAtivityButton = (Button) findViewById(R.id.activity2_button);
        anotherAtivityButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent newActivity = new Intent(MyActivity.this, ControllerActivity.class);
                startActivity(newActivity);
            }
        });
    }
}
